import store from '@/store'

export default function hasButtonPermission(val) {
  return store.state.user.buttons.indexOf(val) >= 0
}
